package com.star.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.star.model.KeyNewsModel;

public interface KeyNewsDao {

	@Insert("insert into t_key_news (content,gmt_create,gmt_modified) values(#{content},now(),now())")
	public void createKeyNews(KeyNewsModel keyNewsModel);

	@Select("select * from t_key_news where content=#{content}")
	public KeyNewsModel queryContent(@Param("content") String content);
}
